import request from '../utils/request'

// 生成今日总结
export function generateDailySummary() {
    return request.post('/api/ai/summary/daily')
}

// 生成本周总结
export function generateWeeklySummary() {
    return request.post('/api/ai/summary/weekly')
}

// 生成自定义日期范围总结
export function generateCustomSummary(startDate, endDate) {
    return request.post('/api/ai/summary/custom', {
        startDate,
        endDate
    })
}

// 获取AI配置信息
export function getAiConfig() {
    return request.get('/api/ai/summary/config')
}

// 测试AI连接
export function testAiConnection() {
    return request.post('/api/ai/summary/test')
} 